/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2016年6月26日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package proxy;

/**
 * @Type CatchProxy
 * @Desc
 * @author boboge
 * @date 2016年6月26日
 * @Version V1.0
 */
public class CatchProxy implements CatchContent {

    private BeginEndCatcher catcher;

    public CatchProxy(HtmlContent HtmlContent) {
        catcher = new BeginEndCatcher(HtmlContent);
    }

    /*
     * (non-Javadoc)
     * 
     * @see proxy.CatchContent#catchHead()
     */
    @Override
    public void catchHead() {
        catcher.catchHead();
    }

    /*
     * (non-Javadoc)
     * 
     * @see proxy.CatchContent#catchBody()
     */
    @Override
    public void catchBody() {
        catcher.catchBody();
    }

    /*
     * (non-Javadoc)
     * 
     * @see proxy.CatchContent#catchThings()
     */
    @Override
    public void catchThings() {
        catcher.catchThings();
    }

}
